import { fetchsync_util, use_dict_byzdmc, use_turn_dict_to_select, usenowDate } from '../util/util.js'


var storage = window.localStorage;

/**
 * 
 * @returns 在线表单list
 */
export function use_tzgg_initcolmun() {
  return [{ show: true,ellipsis: true, dataIndex: "xuhao", title: "序号", key: "xuhao",width:67 },
  { show: true,ellipsis: true, dataIndex: "create_by", title: "创建人", key: "create_by",width:100},
  { show: true,ellipsis: true, dataIndex: "create_time", title: "创建时间", key: "create_time",width:160},
  { show: true,ellipsis: true, dataIndex: "fbr", title: "发布人", key: "fbr",width:100},
  { show: true,ellipsis: true, dataIndex: "fbsj", title: "发布时间", key: "fbsj",width:160},
  { show: true,ellipsis: true, dataIndex: "fbzt", title: "发布状态", key: "fbzt",width:100},
  { show: true,ellipsis: true, dataIndex: "bt", title: "标题", key: "bt"},

  ]
}

/**
 * 
 * @param {*} 在线表单formdata 
 * @returns 
 */
export function use_tzgg_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bdxx_title: { ifdb: false, bt: false, value: "", title: '表单信息', dataIndex: 'bdxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    // tzry: { ifdb: true, bt: false, value: "", title: '通知人员', dataIndex: 'tzry', inputType: "input_item" },
    fbzt: { ifdb: true, bt: false, value: "待发布", title: '发布状态', dataIndex: 'fbzt', inputType: "input_item",disabled:true},
    fbr: { ifdb: true, bt: false, value: "", title: '发布人', dataIndex: 'fbr', inputType: "input_item",disabled:true},
    fbsj: { ifdb: true, bt: false, value:"", title: '发布时间', dataIndex: 'fbsj', inputType: "date_item",disabled:true,showTime:true},
    bt: { ifdb: true, bt: false, value: "", title: '标题', dataIndex: 'bt', inputType: "input_item" },
    xxlx: { ifdb: true, bt: false, value: "", title: '消息类型', dataIndex: 'xxlx', inputType: "select_item_new",
      datas_key: 'dict_xxlx',
      popup_tansferarr: [
        { origin: 'value', target: 'xxlx' }
      ]
    },
    tznr: { ifdb: true, bt: false, value: "", title: '内容', dataIndex: 'tznr', inputType: "textarea_item",height:"10rem" },
  }
  return initformdata
}

/**
 * 
 * @param {*} 在线表单formdata 
 * @returns 
 */
export function use_tzgg_initformdata_view() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bdxx_title: { ifdb: false, bt: false, value: "", title: '表单信息', dataIndex: 'bdxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "view_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "view_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "view_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "view_item", disabled: true },
    bt: { ifdb: true, bt: false, value: "", title: '标题', dataIndex: 'bt', inputType: "view_item" },
    xxlx: { ifdb: true, bt: false, value: "", title: '消息类型', dataIndex: 'xxlx', inputType: "view_item",},
    // tzry: { ifdb: true, bt: false, value: "", title: '通知人员', dataIndex: 'tzry', inputType: "input_item" },
    fbzt: { ifdb: true, bt: false, value: "待发布", title: '发布状态', dataIndex: 'fbzt', inputType: "view_item" },
    fbr: { ifdb: true, bt: false, value: "", title: '发布人', dataIndex: 'fbr', inputType: "view_item" },
    fbsj: { ifdb: true, bt: false, value:"", title: '发布时间', dataIndex: 'fbsj', inputType: "view_item" },
    tznr: { ifdb: true, bt: false, value: "", title: '内容', dataIndex: 'tznr', inputType: "textarea_item" },
  }
  return initformdata
}





/**
 * 
 * @returns 在线表单list
 */
export function use_oltable_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao",width:'3.5rem' },
  { show: true, title: "业务模块", key: "ywmk"},
  { show: true, title: "表描述", key: "table_txt",width:"7rem", style: { fontWeight: "800", color: "#a91f24" }},
  { show: true, title: "数据库表", key: "table_name",width:'11rem' ,style: { color: "#171c63" }, },
  { show: true, title: "表类型", key: "blx",searchtype:"select" },
  { show: true, title: "是否同步", key: "sftb", style: { fontWeight: "800" }, searchtype:'select'},
  { show: true, title: "创建人", key: "create_by" },
  { show: true, title: "创建时间", key: "create_time" },

  ]
}

/**
 * 
 * @param {*} 在线表单formdata 
 * @returns 
 */
export function use_oltable_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bdxx_title: { ifdb: false, bt: false, value: "", title: '表单信息', dataIndex: 'bdxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    table_name: { ifdb: true, bt: true, value: "", title: '数据库表', dataIndex: 'table_name', inputType: "input_item", },
    table_txt: { ifdb: true, bt: true, value: "", title: '表描述', dataIndex: 'table_txt', inputType: "input_item", },
    sftb: {
      ifdb: true, bt: true, value: "已同步", title: '是否同步', dataIndex: 'sftb', inputType: "select_item",
      selectdata: [
        { value: '已同步', label: "已同步" }, { value: '未同步', label: "未同步" },]
    },
    blx: {
      ifdb: true, bt: true, value: "单表", title: '表类型', dataIndex: 'blx', inputType: "select_item",
      selectdata: [
        { value: '单表', label: "单表" }, { value: '主表', label: "主表" },
        { value: '附表', label: "附表" },]
    },
    ywmk: {
      ifdb: true, bt: true, value: "", title: '业务模块', dataIndex: 'ywmk', inputType: "select_item",
      selectdata: [  { value: '项目管理', label: "项目管理" },
        { value: '基础资料', label: "基础资料" }, { value: '系统管理', label: "系统管理" },
        { value: '销售管理', label: "销售管理" }, { value: '采购管理', label: "采购管理" },
        { value: '生产管理', label: "生产管理" }, { value: '库存管理', label: "库存管理" },
        { value: '质量管理', label: "质量管理" }, { value: '工艺管理', label: "工艺管理" },
        { value: '看板管理', label: "看板管理" }, { value: '统计报表', label: "统计报表" },
        { value: '设备管理', label: "设备管理" },   { value: '财务管理', label: "财务管理" },

      ]
    },
    bz: { ifdb: true, bt: false, value: "", title: '备注', dataIndex: 'bz', inputType: "input_text_item", },
    del_zd: { ifdb: true, bt: false, value: "", title: '删除字段', dataIndex: 'del_zd', inputType: "none", },

    dmjg: { ifdb: false, bt: false, value: "", title: '代码结构', dataIndex: 'dmjg', inputType: "input_text_item", },


  }
  return initformdata
}



/**
 * 
 * @returns 在线表单mxlist columm
 */
export function use_oltable_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "80px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: true, defalut_v: "", value: "", title: '字段编码', dataIndex: 'zdbm', inputType: "input_item" },
    { ifdb: true, bt: true, defalut_v: "", value: "", title: '字段名称', dataIndex: 'zdmc', inputType: "input_item" },
    {
      ifdb: true, bt: true, defalut_v: "String", value: "String", title: '字段类型', dataIndex: 'zdlx', inputType: "select_item",
      width: "8rem", selectdata: [
        { value: 'String', label: "String" },
        { value: 'Date', label: "Date" },
        { value: 'Double', label: "Double" },
        { value: 'Interger', label: "Interger" },
        { value: 'Text', label: "Text" }]
    },
    { ifdb: true, bt: true, defalut_v: "99", value: 99, title: '字段长度', dataIndex: 'zdcd', inputType: "input_number_item" },
    {
      ifdb: true, bt: false, defalut_v: "未同步", value: "未同步", title: '字段状态', dataIndex: 'zdzt', inputType: "select_item"
      , width: "6rem", selectdata: [
        { value: '未同步', label: '未同步' }, { value: '已同步', label: '已同步' },
      ]
    },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '字段描述', dataIndex: 'zdms', inputType: "item_text_item" },


  ]
  return colmuns
}


/**
 * 
 * @returns 菜单配置list
 */
export function use_bgcd_initcolmun() {
  return [
    { show: true, title: "序号", key: "xuhao",width:'3.5rem' },
    // { show: true, title: "创建时间", key: "create_time", style: { fontSize: "12px", color: "#000000" } },
    // { show: true, title: "创建人", key: "create_by" },
    // { show: true, title: "更新时间", key: "update_time", style: { fontSize: "12px", color: "#000000" } },
    // { show: true, title: "更新人", key: "update_by" },
    { show: true, title: "菜单名称", key: "cdmc", width:"8rem",style: { fontSize: "0.7rem", color: "#000000" } },
    { show: true, title: "菜单编号", key: "cdbh", width:"8rem",style: { fontSize: "0.7rem", color: "#000000" } },
    // { show: true, title: "所属模块", key: "ssmk", width:"3.5rem",style: { fontSize: "0.7rem", color: "#000000" } },
    { show: true, title: "菜单路由", key: "cdly", width: "18rem", style: { fontSize: "0.7rem", color: "#a91f24" } },
    { show: true, title: "菜单类型", key: "cdlx", style: { fontSize: "0.7rem", color: "#000000" } },
    { show: true, title: "上一级菜单", key: "parent_mc", style: { fontSize: "0.7rem", color: "#000000" } },
    // { show: true, title: "几级菜单", key: "jjcd", style: { fontSize: "0.7rem", color: "#000000" } },
    { show: true, title: "菜单排序", key: "cdpx", style: { fontSize: "0.7rem", color: "#000000" } },
    // { show: true, title: "菜单图标", key: "cdtb", style: { fontSize: "0.7rem", color: "#000000" } },

  ]
}

/**
 * 
 * @param {*} 菜单配置formdata 
 * @returns 
 */
export function use_bgcd_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bdxx_title: { ifdb: false, bt: false, value: "", title: '表单信息', dataIndex: 'bdxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    cdmc: { ifdb: true, bt: true, value: "", title: '菜单名称', dataIndex: 'cdmc', inputType: "input_item", },
    cdbh: { ifdb: true, bt: true, value: "", title: '菜单编号', dataIndex: 'cdbh', inputType: "input_item", },
    ssmk: {
      ifdb: true, bt: true, value: "PC", title: '所属模块', dataIndex: 'ssmk', inputType: "select_item", selectdata: [{ label: 'PC', value: 'PC' },
      { label: 'PDA', value: 'PDA' }]
    },
    cdly: { ifdb: true, bt: false, value: "", title: '菜单路由', dataIndex: 'cdly', inputType: "input_item", },
    cdlx: {
      ifdb: true, bt: true, value: "", title: '菜单类型', dataIndex: 'cdlx', inputType: "select_item", selectdata: [{ label: '路由菜单', value: '路由菜单' },
      { label: '非路由菜单', value: '非路由菜单' }]
    },
    parent_mc: {
      ifdb: true, bt: false, value: "", title: '菜单上一级', dataIndex: 'parent_mc', inputType: "select_item",
      selectdata: []
    },
    jjcd: { ifdb: true, bt: true, value: "", title: '几级菜单', dataIndex: 'jjcd', inputType: "input_number_item", },
    cdpx: { ifdb: true, bt: true, value: "", title: '菜单排序', dataIndex: 'cdpx', inputType: "input_number_item", },
    cdtb: { ifdb: true, bt: false, value: "", title: '菜单图标', dataIndex: 'cdtb', inputType: "input_item", },
    tbys: { ifdb: true, bt: false, value: "", title: '图标颜色', dataIndex: 'tbys', inputType: "input_item", },

  }
  return initformdata
}

/**
 * 
 * @returns 业务角色list
 */
export function use_js_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao" },
  { show: true, title: "角色编号", key: "jsbh" },
  { show: true, title: "角色名称", key: "jsmc" },
  { show: true, title: "创建时间", key: "create_time" },
  { show: true, title: "创建人", key: "create_by" },


  ]
}

/**
 * 
 * @param {*} 业务角色formdata 
 * @returns 
 */
export function use_js_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bdxx_title: { ifdb: false, bt: false, value: "", title: '表单信息', dataIndex: 'bdxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    jsbh: { ifdb: true, bt: true, value: "", title: '角色编号', dataIndex: 'jsbh', inputType: "input_item", },
    jsmc: { ifdb: true, bt: true, value: "", title: '角色名称', dataIndex: 'jsmc', inputType: "input_item", },

  }
  return initformdata
}



/**
 * 
 * @returns 业务角色mxlist columm
 */
export function use_js_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "80px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    {
      ifdb: true, bt: false, defalut_v: "", value: "", title: '菜单名称', dataIndex: 'cdmc', inputType: "popup_item_transfer",
      popup_maintitle: '菜单名称', 
      popup_column: [
        { title: "序号", key: "xuhao" },
        { title: "菜单名称", key: "cdmc" },
        { title: "几级菜单", key: "jjcd" },
        { title: "所属模块", key: "ssmk" },
        { title: "菜单编号", key: "cdbh" }
      ],
      datas_key: 'dates_cdmc',
      popup_tansferarr: [
        { origin: "cdmc", target: "cdmc" },
        { origin: "jjcd", target: "jjcd" },
        { origin: "ssmk", target: "ssmk" },
        { origin: "cdqx", target: "cdqx" }
      ],
      popup_mxtitle: "已加入菜单权限",
      popup_column_mx: [
        { title: "序号", key: "xuhao" },
        { title: "菜单名称", key: "cdmc" },
        { title: "几级菜单", key: "jjcd" },
        { title: "所属模块", key: "ssmk" },
        { title: "菜单权限", key: "cdqx" }

      ],
    },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '菜单权限', dataIndex: 'cdqx', inputType: "readonly" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '几级菜单', dataIndex: 'jjcd', inputType: "readonly" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '所属模块', dataIndex: 'ssmk', inputType: "readonly" },

  ]
  return colmuns
}




/**
 * 
 * @returns 数据字典list
 */
export function use_dict_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao" },
  { show: true, title: "业务模块", key: "ywmk" },
  { show: true, title: "字典名称", key: "zdmc", style: { fontWeight: "800", color: "#a91f24" }, },
  { show: true, title: "字典编码", key: "zdbm", style: { color: "#171c63" }, },
  { show: true, title: "备注", key: "bz" },
  { show: true, title: "创建人", key: "create_by" },
  { show: true, title: "创建时间", key: "create_time" },

  ]
}

/**
 * 
 * @param {*} 数据字典formdata 
 * @returns 
 */
export function use_dict_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bdxx_title: { ifdb: false, bt: false, value: "", title: '表单信息', dataIndex: 'bdxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    zdmc: { ifdb: true, bt: true, value: "", title: '字典名称', dataIndex: 'zdmc', inputType: "input_item", },
    zdbm: { ifdb: true, bt: true, value: "", title: '字典编码', dataIndex: 'zdbm', inputType: "input_item", },
    ywmk: { ifdb: true, bt: true, value: "", title: '业务模块', dataIndex: 'ywmk', inputType: "input_item", },
    bz: { ifdb: true, bt: false, value: "", title: '备注', dataIndex: 'bz', inputType: "input_text_item", },

  }
  return initformdata
}



/**
 * 
 * @returns 数据字典mxlist columm
 */
export function use_dict_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "80px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "readonly", width: 400 },
    { ifdb: true, bt: true, defalut_v: "", value: "", title: '名称', dataIndex: 'mc', inputType: "input_item" },
    { ifdb: true, bt: true, defalut_v: "", value: "", title: '编码', dataIndex: 'bm', inputType: "input_item" },
    { ifdb: true, bt: true, defalut_v: "", value: "", title: '顺序', dataIndex: 'sx', inputType: "input_number_item" },
    { ifdb: false, bt: true, defalut_v: "", value: "", title: '上级id', dataIndex: 'sfjd', inputType: "none" },

  ]
  return colmuns
}




/**
 * 
 * @returns 在线报表list
 */
export function use_olreport_initcolmun() {
  return [{ show: true, title: "序号", key: "xuhao" },
  { show: true, title: "业务模块", key: "ywmk" },
  { show: true, title: "报表名称", key: "bbmc", style: { fontWeight: "800", color: "#a91f24" }, },
  { show: true, title: "报表编码", key: "bbbm" },
  { show: true, title: "是否启用", key: "sfqy" },
  { show: true, title: "业务模块", key: "ywmk" },
  { show: true, title: "创建人", key: "create_by" },
  { show: true, title: "创建时间", key: "create_time" },

  ]
}

/**
 * 
 * @param {*} 在线报表formdata 
 * @returns 
 */
export function use_olreport_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bdxx_title: { ifdb: false, bt: false, value: "", title: '表单信息', dataIndex: 'bdxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    bbmc: { ifdb: true, bt: false, value: "", title: '报表名称', dataIndex: 'bbmc', inputType: "input_item" },
    bbbm: { ifdb: true, bt: false, value: "", title: '报表编码', dataIndex: 'bbbm', inputType: "input_item" },
    bbsql: { ifdb: true, bt: true, value: "", title: '报表sql', dataIndex: 'bbsql', inputType: "input_text_item" },
    sfqy: {
      ifdb: true, bt: true, value: "是", title: '是否启用', dataIndex: 'sfqy', inputType: "select_item"
      , selectdata: [{ value: "是", label: "是" }, { value: "否", label: "否" }]
    },
    ywmk: {
      ifdb: true, bt: false, value: "", title: '业务模块', dataIndex: 'ywmk', inputType: "select_item_new"
      , datas_key: 'dict_ywlx',
      popup_tansferarr: [
        { origin: 'value', target: 'ywmk' }
      ]
    },
    bz: { ifdb: true, bt: false, value: "", title: '备注', dataIndex: 'bz', inputType: "input_text_item" },

  }
  return initformdata
}



/**
 * 
 * @returns 在线报表mxlist columm
 */
export function use_olreport_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "80px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "readonly", width: 400 },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '顺序', dataIndex: 'sx', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '字段名', dataIndex: 'zdm', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '字段文本', dataIndex: 'zdwb', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '字段类型', dataIndex: 'zdlx', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '是否显示', dataIndex: 'sfxs', inputType: "input_item" },

  ]
  return colmuns
}





/**
 * 
 * @returns 在线序列list
 */
export function use_olseq_initcolmun() {
  return [
    { show: true, title: "创建时间", key: "create_time" },
    { show: true, title: "创建人", key: "create_by" },
    { show: true, title: "更新时间", key: "update_time" },
    { show: true, title: "更新人", key: "update_by" },
    { show: true, title: "序列名称", key: "xlmc" },
    { show: true, title: "序列编号", key: "xlbh" },
    { show: true, title: "最大值", key: "zdz" },
    { show: true, title: "最小值", key: "zxz" },
    { show: true, title: "初始值", key: "csz" },
    { show: true, title: "间隔", key: "jg" },
    { show: true, title: "状态", key: "zt" },
    { show: true, title: "当前值", key: "current_value" },
  ]
}

/**
 * 
 * @param {*} 在线序列formdata 
 * @returns 
 */
export function use_olseq_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var initformdata = {
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    bdxx_title: { ifdb: false, bt: false, value: "", title: '表单信息', dataIndex: 'bdxx_title', inputType: "title_item" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    xlmc: { ifdb: true, bt: false, value: "", title: '序列名称', dataIndex: 'xlmc', inputType: "input_item" },
    xlbh: { ifdb: true, bt: false, value: "", title: '序列编号', dataIndex: 'xlbh', inputType: "input_item" },
    zdz: { ifdb: true, bt: false, value: "", title: '最大值', dataIndex: 'zdz', inputType: "input_number_item" },
    zxz: { ifdb: true, bt: false, value: "", title: '最小值', dataIndex: 'zxz', inputType: "input_number_item" },
    csz: { ifdb: true, bt: false, value: "", title: '初始值', dataIndex: 'csz', inputType: "input_number_item" },
    current_value: { ifdb: false, bt: false, value: "", title: '当前值', dataIndex: 'current_value', inputType: "readonly" },
    jg: { ifdb: true, bt: false, value: "", title: '间隔', dataIndex: 'jg', inputType: "input_number_item" },
    zt: { ifdb: true, bt: false, value: "未同步", title: '状态', dataIndex: 'zt', inputType: "readonly" },

  }
  return initformdata
}
